﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ExternControlModel
{
    public interface IExternControlAdapter<T> where T : class
    {
        /// <summary>
        /// 开始检测，传入产品ID
        /// </summary>
        event Action<string> StartTask;
        /// <summary>
        /// 请求清灰，传入清灰索引
        /// </summary>
        event Action<int> RequestDust;
        /// <summary>
        /// 请求目测
        /// </summary>
        event Action<int> RequestVisiual;
        /// <summary>
        /// 请求电测，传入图片索引
        /// </summary>
        event Action<int> RequestFrame;
        /// <summary>
        /// 回传结果
        /// </summary>
        /// <returns></returns>
        event Func<T> BackResult;
        /// <summary>
        /// 切换型号
        /// </summary>
        event Func<string, bool> ChangeOver;
    }
}
